package com.rz.javaSpringBoot.modules.test.service;

import com.rz.javaSpringBoot.modules.common.entity.Result;
import com.rz.javaSpringBoot.modules.common.entity.SearchBean;
import com.rz.javaSpringBoot.modules.test.entity.Student;
import org.apache.catalina.LifecycleState;
import org.springframework.data.domain.Page;

import java.sql.ResultSet;
import java.util.List;


public interface StudentService {

    Result<Student> editStudent(Student student);

    Result<Object> deleteStudentById(int id);

    Student getStudentById(int id);

    List<Student> getStudents();

    Student getStudentByNameAndEmail(String name, String email);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    Result<Object> insertStudents(List<Student> students);
}
